package com.feng.study.demo.chatgpt;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
public class ChatGPTdemo {
    public static void main(String[] args) throws IOException {
        ChatGPTBot chatGPTBot = new ChatGPTBot();
        String str = chatGPTBot.generateResponse("你是谁");
    }

    @GetMapping("/chatgpt/demo")
    public void test() throws IOException {
        ChatGPTBot chatGPTBot = new ChatGPTBot();
        String str = chatGPTBot.generateResponse("你是谁");
    }
}
